package com.tobestronger.shouxiespringframework.context;

import java.util.EventListener;

/**
 * 应用事件监听器
 *
 * @param <E>
 */
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener {

    /**
     * <p>事件发生时的回调方法</p>
     * Handle an application event.
     * @param event the event to respond to
     */
    void onApplicationEvent(E event);

}